.class public Les/pf0;
.super Les/nf0;
.source "CharsetsDialog.java"


# instance fields
.field private b:[Ljava/lang/String;

.field private c:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/nf0;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-direct {p0}, Les/pf0;->d()V

    return-void
.end method

.method static synthetic a(Les/pf0;I)I
    .locals 0

    .line 1
    iput p1, p0, Les/pf0;->c:I

    return p1
.end method

.method static synthetic a(Les/pf0;)[Ljava/lang/String;
    .locals 0

    .line 2
    iget-object p0, p0, Les/pf0;->b:[Ljava/lang/String;

    return-object p0
.end method

.method private d()V
    .locals 6

    .line 1
    invoke-static {}, Ljava/nio/charset/Charset;->availableCharsets()Ljava/util/SortedMap;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/SortedMap;->keySet()Ljava/util/Set;

    move-result-object v1

    .line 3
    invoke-virtual {p0}, Les/nf0;->b()Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {p0}, Les/nf0;->b()Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->y()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object v2

    if-nez v2, :cond_0

    goto :goto_1

    .line 4
    :cond_0
    invoke-virtual {p0}, Les/nf0;->b()Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->y()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/ui/b;->c()Ljava/lang/String;

    move-result-object v2

    .line 5
    invoke-interface {v0}, Ljava/util/SortedMap;->size()I

    move-result v0

    new-array v0, v0, [Ljava/lang/String;

    iput-object v0, p0, Les/pf0;->b:[Ljava/lang/String;

    .line 6
    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    .line 7
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 8
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 9
    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 10
    iput v1, p0, Les/pf0;->c:I

    .line 11
    :cond_1
    iget-object v4, p0, Les/pf0;->b:[Ljava/lang/String;

    add-int/lit8 v5, v1, 0x1

    aput-object v3, v4, v1

    move v1, v5

    goto :goto_0

    :cond_2
    :goto_1
    return-void
.end method


# virtual methods
.method protected bridge synthetic a()Lcom/jecelyin/common/widget/dialog/a$c;
    .locals 1

    .line 3
    invoke-virtual {p0}, Les/pf0;->a()Lcom/jecelyin/common/widget/dialog/b;

    move-result-object v0

    return-object v0
.end method

.method protected a()Lcom/jecelyin/common/widget/dialog/b;
    .locals 3

    .line 4
    new-instance v0, Lcom/jecelyin/common/widget/dialog/b;

    iget-object v1, p0, Les/nf0;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/jecelyin/common/widget/dialog/b;-><init>(Landroid/content/Context;)V

    .line 5
    iget-object v1, p0, Les/pf0;->b:[Ljava/lang/String;

    iget v2, p0, Les/pf0;->c:I

    invoke-virtual {v0, v1, v2}, Lcom/jecelyin/common/widget/dialog/b;->a([Ljava/lang/CharSequence;I)Lcom/jecelyin/common/widget/dialog/b;

    sget v1, Lcom/jecelyin/editor/v2/m;->je_reopen_with_encoding:I

    invoke-virtual {v0, v1}, Lcom/jecelyin/common/widget/dialog/a$c;->f(I)Lcom/jecelyin/common/widget/dialog/a$c;

    new-instance v1, Les/pf0$a;

    invoke-direct {v1, p0}, Les/pf0$a;-><init>(Les/pf0;)V

    .line 6
    invoke-virtual {v0, v1}, Lcom/jecelyin/common/widget/dialog/a$c;->a(Lcom/jecelyin/common/widget/dialog/a$d;)Lcom/jecelyin/common/widget/dialog/a$c;

    sget v1, Lcom/jecelyin/editor/v2/m;->je_cancel:I

    .line 7
    invoke-virtual {v0, v1}, Lcom/jecelyin/common/widget/dialog/a$c;->b(I)Lcom/jecelyin/common/widget/dialog/a$c;

    return-object v0
.end method

.method public c()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/pf0;->a()Lcom/jecelyin/common/widget/dialog/b;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Lcom/jecelyin/common/widget/dialog/a$c;->a()Lcom/jecelyin/common/widget/dialog/a;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 4
    invoke-virtual {p0, v0}, Les/nf0;->a(Lcom/jecelyin/common/widget/dialog/a;)V

    return-void
.end method
